# from ..man import app
#
# @app.task(name='send_sms')
# def send_sms():
#     print('-------指定celery任务----------')
#     return "执行成功"
from ..man import app
from django0924.utils.ronglianyun import send_message


@app.task(name='send_sms')
def send_sms(tid, mobile, datas):
    print('-------指定celery任务----------')

    res = send_message(tid, mobile, datas)

    return res